package com.zzptc.zzsgz.baiduwsapp;

import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.Toast;

import java.util.Timer;
import java.util.TimerTask;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        final Intent localintent=new Intent(this,Main2Activity.class);
        Timer timer=new Timer();
        TimerTask task= new TimerTask() {
            @Override
            public void run() {
              startActivity(localintent);
            }
        };
        timer.schedule(task,1000);



    }
}
